package com.ai.module.business.controller;

import com.ai.module.business.domain.req.ImageGroundReq;
import com.ai.module.business.service.ImageGroundService;
import com.ai.module.user.domain.vo.ImageGroundVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: MrHe
 * @create: 2024-01-25 23:33
 * @description:
 **/
@RestController
@RequestMapping("/image/ground")
@Api(tags = "图片广场")
public class ImageGroundController {

    @Autowired
    private ImageGroundService imageGroundService;

    @PostMapping
    @ApiOperation("查询所有的图片 分页")
    public Page<ImageGroundVo> findAll(@RequestBody ImageGroundReq imageGround){
        return imageGroundService.imageGrounds(imageGround);
    }

}
